import type { App } from 'vue'
import { getEnumDisplayName } from './enum'
import { formatToDate } from './dateUtil'

export default async function initAppUtils(app: App) {
  app.config.globalProperties.$getEnumDisplayName = getEnumDisplayName
  app.config.globalProperties.$formatToDate = formatToDate
}